19a620
@@ -856,7 +856,7 @@
public boolean isDirectory() {
             return true;
         }
 
-        if (getName().endsWith("/")) {
+        if (!isPaxHeader() && !isGlobalPaxHeader() && getName().endsWith("/")) {
             return true;
         }
 
